package com.hyt.it.ogt.common.config;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * 配置信息
 *
 * @author liuqi
 * @date 2022-05-31
 */
@Component
@RefreshScope
@Getter
public class MQConfigManager {

    /**********************同步评卷数据到成绩队列************************/
    @Value("${mq.direct}")
    private String direct;

    /**********************同步考试数据到成绩队列************************/
    @Value("${mq.kzToKhDirect}")
    private String kzToKhDirect;

    @Value("${mq.syncCandidateToCj.queue}")
    private String groupSyncCandidateToCjQueue;

    @Value("${mq.syncCandidateToCj.route}")
    private String groupSyncCandidateToCjRoute;


    @Value("${redis.datainvalidtime:3000}")
    private Integer redisDataInvalidTime;
}
